package cn.huangjunqi.controlleer;

import com.jfinal.core.Controller;

import cn.huangjunqi.hjq99.model.User;

public class AdminController extends Controller {
	private User user =new User();
	public void index() {
		 user = this.getSessionAttr("usersession");
		 if(user !=null) {
			 this.render("index.html");
		 }else {
			 this.redirect("/admin/login");
		 }
		
	}
}
